package parent;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application_parent.xml");
        B b = context.getBean("b", B.class);
        System.out.println(b);


      /*  A a = context.getBean("a", A.class);
        System.out.println(a);*/


    }
}
